package com.tian.common.util

import android.os.Build

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2020/12/17 14:11
 */
object DeviceHelper {

    val BRAND = Build.BRAND.toLowerCase()


    fun isXiaomi() = Build.MANUFACTURER.toLowerCase() == "xiaomi"

    fun isVivo() = BRAND.contains("vivo") || BRAND.contains("bbk")

    fun isOppo() = BRAND.contains("oppo")

    fun isHuawei() = BRAND.contains("huawei") || BRAND.contains("honor")

    fun isEssentialPhone() = BRAND.contains("essential")

}